CC = gcc
CFLAGS = -m64 -Wall -O0 -g

all: task_demo

task_demo: main.o task_switch.o
	$(CC) $(CFLAGS) -o $@ $^

main.o: main.c
	$(CC) $(CFLAGS) -c $<

task_switch.o: task_switch.s
	$(CC) $(CFLAGS) -c $<

clean:
	rm -f *.o task_demo
